﻿/*******************************************************************************
* 
* Logging Test
* 
* 
******************************************************************************/
#include "stdafx.h"
#include <direct.h> 
#include "CppUnitTest.h"

#include "../common/common.h"

using namespace Microsoft::VisualStudio::CppUnitTestFramework;

namespace ut
{		
	TEST_CLASS(LoggingTest)
	{
	public:
		
		TEST_METHOD(LoggingTestMethod1)
		{
            Assert::AreEqual(1, 1, L"message", LINE_INFO());
            
            LOG_DEBUG("Hello FE");
            LOG_INFO("Hello FE with my friends->%s and %s", "miles", "yoyo");
            LOG_WARN("Hello FE with my friends->%s and %s", "miles", "yoyo");
            LOG_ERROR(L"Hello FE with my 朋友->%s, κορδόνι and %s", L"ストリング", L"끈");
            LOG_FATAL(L"Hello FE with my 朋友->%s and %s, ... %d", L"miles", L"陈燕", 2052);

            wchar_t cwd[_MAX_PATH];
            Logger::WriteMessage(_wgetcwd(cwd, _MAX_PATH));
		}

	};
}